package com.tx.websocket.demo.redis;

import lombok.Getter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

@Configuration
@Getter
@PropertySource("classpath:common.properties")
public class CommonConfig {

    @Value("${redis.databaseIndex : 0}")
    private Integer databaseIndex;

    @Value("${redis.password : null}")
    private String password;

    @Value("${redis.host : 127.0.0.1}")
    private String host;

    @Value("${redis.port : 6379}")
    private Integer port;

    @Value("${redis.maxIdle : 8}")
    private Integer maxIdle;

    @Value("${redis.maxWait : 10000}")
    private Integer maxWait;

    @Value("${redis.timeout : 10000}")
    private Integer timeout;

    @Value("${session.timeout}")
    private Integer sessionTimeout;

    @Value("${page.tab.count}")
    private Integer tabCount;

    @Value("${page.size}")
    private Integer pageSize;
}
